package com.wm.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 省份信息表
 * </p>
 *
 * @author hyq
 * @since 2023-10-23 11:14:43
 */
@Getter
@Setter
@TableName("t_province")
@ApiModel(value = "TProvince对象", description = "省份信息表")
public class TProvince implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("省份编码")
    @TableField("`code`")
    private String code;

    @ApiModelProperty("省份名称")
    @TableField("`name`")
    private String name;

    @TableField(exist = false)
    private List<TCity> cityList;

}
